package com.jit.monitor.ui.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jit.baselib.ui.base.BaseActivity;
import com.jit.monitor.R;
import com.jit.monitor.model.response.WarnHistoryBean;

import java.util.List;

/**
 * @author crazyZhangxl on 2019/1/22.
 * Describe:
 */
public class WarnHsyAdapter extends BaseQuickAdapter<WarnHistoryBean,BaseViewHolder> {

    public WarnHsyAdapter(int layoutResId, @Nullable List<WarnHistoryBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, WarnHistoryBean item) {
        helper.setText(R.id.tvTime,item.getTime());
        helper.setText(R.id.tvMsg,item.getMsg());
    }
}
